cc_library(
  name = "init",
  src = "init.cc",
  deps = [
    ":cmd_flags",
  ]
)

cc_library(
  name = "cmd_flags",
  src = "cmd_flags.cc",
  deps = [ ":logging",
           "//strings:numbers"
           ]
)

cc_test(
  name = "cmd_flags_test",
  src = "cmd_flags_test.cc",
  deps = [ ":cmd_flags",
           "//testing:gunit_main", 
           ]
)

cc_library(
  name = "logging",
  src = "logging.cc"
)

cc_library(
  name = "callback",
  src = "callback.cc"
)

cc_test(
  name = "callback_test",
  src = "callback_test.cc",
  deps = [ ":callback",
           "//testing:gunit_main", 
           ]
)

cc_library(
  name = "mutex",
  src = "mutex.cc"
  deps = [ ":logging", 
           ":cmd_flags",
           "//thread:thread"
           ]
)

cc_test(
  name = "mutex_test",
  src = "mutex_test.cc",
  deps = [ ":mutex",
           "//testing:gunit_main", 
           ]

)

cc_library(
  name = "scoped_ptr",
  src = "scoped_ptr.cc"
)

cc_library(
  name = "notification",
  src = "notification.cc"
  deps = [ ":logging", 
           ]
)

cc_test(
  name = "notification_test",
  src = "notification_test.cc",
  deps = [ ":notification",
           "//thread:executor"
           "//testing:gunit_main", 
           "//util:time",
           ]
)


